package com.usian.apis.service.article;

import com.usian.model.article.ApAuthor;
import com.usian.model.behavior.dto.CollectionBehaviorDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface ArticleController {
    /**
     * 根据id查询
     * @return
     */
    public ApAuthor findByid(@PathVariable("id") Integer id);

    public ResponseResult ss(ApAuthor apArticle);

    public com.usian.model.article.pojos.ApArticle add(@RequestBody com.usian.model.article.pojos.ApArticle apArticle);

    //添加文章审核详细表
    public ApAuthor findAllAr(Integer id);

    //添加文章配置表
    public ResponseResult addArticleConfig(@RequestBody com.usian.model.article.pojos.ApArticleConfig apArticleConfig);

    //添加文章内容表
    public ResponseResult addApArticleConfig(@RequestBody com.usian.model.article.pojos.ApArticleContent apArticleConfig);

    public void UpdateArticle_Config(String enable, String articel);

    //根据id查询author
    public ApAuthor findByidApAuthor(@PathVariable(value = "id") Integer id);

    //收藏
    public void addApCollctionBehacior( CollectionBehaviorDto collectionBehaviorDto);
}
